<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@page import="sjs.bean.Article"%>
<%@page import="sjs.service.PMF"%>
<html>
  <body>
    <form action="MultipartTestServlet" enctype="multipart/form-data" method="post">
    	<table border='1'>
    			<thead>
	    			<tr>
	    				<th>编号</th>
	    				<th>题目</th>
	    				<th>作者</th>
	    				<th>时间</th>
	    			</tr>
    			</thead>
    			<tbody>
    					<%
    						List<Article> list=PMF.getListByQl("select from "+Article.class.getName());
    						for(Article art:list){
    					%>
    						<tr>
    							<td><%=art.getId() %></td>
    							<td><a href='read.jsp?id=<%=art.getId() %>'> <%=art.getTitle() %></a></td>
    							<td><%=art.getAuther() %></td>
    							<td><%=art.getUpdatedate() %></td>
    						</tr>
    						
    					<%} %>
    			</tbody>
    	</table>
    </form>
  </body>
</html>